{extend name='admin@public/content'}
<style>
    .keys-container{min-width:800px}
    .keys-container textarea{width:95%;height:100px;border-radius:0}
    .keys-container .input-group input{border-right:0}
    .keys-container .input-group-addon{border-left:0;border-radius:0}
    .keys-container [data-tips-image]{width:112px;height:auto;}
    .keys-container .layui-elem-field{width:100%;height:1000px;position:absolute}
</style>
{/block}
{block name="content"}
<!-- 效果预览区域 结束 -->
<div class="row keys-container">
    <div class='col-xs-6 margin-left-15'>
        <div id="allmap"></div>
        <form class="form-horizontal layui-form" role="form" data-auto="true" action="admin/Adminagent/editpost" method="post">
            <fieldset style="width:120%;height:1200px" class="layui-elem-field layui-box">
                <legend>{$title}</legend>
                <input type="hidden" value="{$info.id} " name='id'>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">真实姓名</label>
                    <div class="col-xs-8">
                        <input required title="填写真实姓名" type="type"  maxlength='20' name='real_name' class="layui-input" value='{$info.real_name|default=""}'>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">手 机 号</label>
                    <div class="col-xs-8">
                        <input required title="填写手机号码" maxlength='20' name='tel' class="layui-input" value='{$info.tel|default="暂无"}'>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">可提现余额</label>
                    <div class="col-xs-8">
                        <input required  maxlength='20' class="layui-input" value='{$info.money|default=""}' readonly="ture">
                    </div>
                </div>



                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">总 金 额</label>
                    <div class="col-xs-8">
                        <input  title='请输入总金额' maxlength='20' class="layui-input" value='{$info.count_money|default=""}'readonly="true">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label label-required">是否实名认证</label>
                    <div class="col-xs-8">
                        <div class="mt-radio-inline padding-bottom-0">
                            <label class="think-radio">
                                <span>{$info.is_real == 1 ? '是' : '否'}</span>
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label label-required">状态</label>
                    <div class="col-xs-8">
                        <div class="mt-radio-inline padding-bottom-0">
                            <label class="think-radio">
                                <input data-auto-none="" type="radio" <?php if($info['status'] == 1){?>checked<?php }?> value="1"> 正常                                <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio" <?php if($info['status'] == 2){?>checked<?php }?> value="2"> 禁用                                <!---->
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label label-required">二维码</label>
                    <img src="{$info.recode}" width="200px"height="200px"><a href="{$info.recode}"class="layui-btn layui-btn-danger" download="二维码">下载</a>
                </div>

                <div class="text-center padding-bottom-10" style="position:absolute;bottom:0;width:100%;height: 600px">
                    <div class="hr-line-dashed" style="margin:10px 0"></div>
                    <button style="" class="layui-btn menu-submit">保存数据</button>
                    <!--{if !isset($vo.keys) || !in_array($vo.keys,['default','subscribe'])}-->
                    <button data-cancel-edit class="layui-btn layui-btn-danger" type='button'>取消编辑</button>
                    <!--{/if}-->
                </div>

            </fieldset>
        </form>
    </div>
</div>
{/block}

{block name="script"}
<script>

    $(function (){
        var $body = $('body');
        /*! 取消编辑 */
        $('[data-cancel-edit]').on('click', function (){
            var dialogIndex = $.msg.confirm('确定取消编辑吗？', function (){
                history.back();
                $.msg.close(dialogIndex);
            });
        });
        // 默认事件触发
        $('input[name=type]:checked').map(function (){
            $(this).trigger('click');
        });
    });
</script>
{/block}
